package jp.co.jmas.jmasvideo.dao;

import java.util.List;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class UserData {

	// ユーザID
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;

	// ユーザ名(Gmailアカウント名)
	@Persistent
	private String name;

	// 通知先メールアドレス
	@Persistent
	private String mail;

	// 配信先ユーザ名(Gmailアカウント名)
	@Persistent
	private List<String> distribution;

	public UserData(String name, String mail, List<String> distribution) {
		this.name = name;
		this.mail = mail;
		this.distribution = distribution;
	}

	public Long getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public String getMail() {
		return mail;
	}

	public List<String> getDistribution() {
		return distribution;
	}

}
